var verify_compare_club_with_jd_for_item_status = JSON.parse('{"CODE":0, "ACTION":"","LEVEL":"T1", "MSG":"","DATA":"","SCRIPTNAME":"verify_compare_club_with_jd_for_item_status"}');
var request_sku_list_obj = JSON.parse(request_sku_list);
var compare_club_with_jd_for_item_status_flag = false

if (!isNull(request_sku_list_obj)) {
    request_sku_list_obj.forEach(function (sku) {
        if (!compare_club_with_jd_for_item_status_flag && !isNull(sku.item_status) && !isNull(item_status) && sku.item_status != item_status) {
            if (determineInterSectionStore(sku, id, item_nbr, trait_nbr, store_id, trait_store, store_type, true, store_jd)) {
                compare_club_with_jd_for_item_status_flag = true;
            }
        }
    })
}

if (compare_club_with_jd_for_item_status_flag) {
    verify_compare_club_with_jd_for_item_status.CODE = 2;
    verify_compare_club_with_jd_for_item_status.ACTION = 'error';
    verify_compare_club_with_jd_for_item_status.MSG = '存在JD店&母店状态不同';
}
JSON.stringify(verify_compare_club_with_jd_for_item_status);